/* 小助手主样式 */
#assistant-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
  }
  
  .assistant-btn {
    background-color: #4CAF50;
    color: white;
    border: none;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    font-size: 16px;
    cursor: pointer;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
    transition: all 0.3s ease;
  }
  
  .assistant-btn:hover {
    background-color: #45a049;
    transform: scale(1.1);
  }
  
  #assistant-chat {
    width: 300px;
    height: 400px;
    background: white;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    display: flex;
    flex-direction: column;
  }
  
  .hidden {
    display: none;
  }
  
  .messages-container {
    flex-grow: 1;
    padding: 10px;
    overflow-y: auto;
  }
  
  .input-area {
    display: flex;
    padding: 10px;
    border-top: 1px solid #eee;
  }
  
  #user-input {
    flex-grow: 1;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    margin-right: 8px;
  }
  
  #send-btn {
    padding: 8px 15px;
    background-color: #4CAF50;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
  }
  
  #send-btn:hover {
    background-color: #45a049;
  }
  
  /* 消息样式 */
  .message {
    margin-bottom: 10px;
    padding: 8px 12px;
    border-radius: 18px;
    max-width: 80%;
    word-wrap: break-word;
  }
  
  .user-message {
    background-color: #e3f2fd;
    margin-left: auto;
    border-bottom-right-radius: 4px;
  }
  
  .assistant-message {
    background-color: #f1f1f1;
    margin-right: auto;
    border-bottom-left-radius: 4px;
  }
  /* 加载指示器 */
.thinking-indicator {
  color: #666;
  font-style: italic;
}

.typing-animation:after {
  content: '...';
  animation: typing 1.5s infinite;
}

@keyframes typing {
  0% { content: '.'; }
  33% { content: '..'; }
  66% { content: '...'; }
}